import request from '../utils/request';
  
 

  
  // export function getFruitList(params: any): any {
  //   return request({
  //     url: '/api/fruit/list',
  //     method: 'GET',
  //     params
  //   });
  // }
  export function getFruitList(params: any): any {
    return request({
      url: '/api/fruit/tableList',
      method: 'GET',
      params
    });
  }
 
  export function addFruit(data: any): any {
    console.log(data, 'data')
    return request({
      url: '/api/fruit/addList',
      method: 'POST',
      data
    });
  }
  

  export function deleteFruit(params: any): any {
    return request({
      url: '/api/fruit/delete',
      method: 'DELETE',
      params
    });
  }
  export function updateFruit(data: any): any {
    return request({
      url: '/api/fruit/update',
      method: 'POST',
      data
    });
  }
  
  export function getDetail(params: any): any {
    return request({
      url: '/api/fruit/FruitDetail',
      method: 'GET',
      params
    });
  }